package com.dks.mapper;

import java.util.*;

import com.dks.dto.TaskListDto;
import com.dks.models.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TaskMapper{

    Integer insert(Task task);

    Integer update(Task task);

    Integer delete(@Param("id") Integer id);

    Task select(@Param("id") Integer id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<Task> getByMapList(Map<String, Object> map);

    Integer updateByCode(Task task);

    Task selectByBfCode(@Param("bfCode") String bfCode);

    List<TaskListDto> getStudentTaskList(Map<String, Object> map);
}
